﻿<%@ Page Language="C#" Theme="skin_control" AutoEventWireup="true" CodeFile="QuarterResolveAdd.aspx.cs"
    Inherits="QuarterPlan_QuarterResolveAdd" %>

<%@ Register Assembly="AjaxControlToolkit" Namespace="AjaxControlToolkit" TagPrefix="cc1" %>
<%@ Register Assembly="System.Web.Extensions, Version=1.0.61025.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35"
    Namespace="System.Web.UI" TagPrefix="asp" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
    <title>年分解计划添加</title>
    <link href="../App_Themes/css/main_css.css" rel="stylesheet" type="text/css" />
    <script src="../Js/My97DatePicker/WdatePicker.js" type="text/javascript"></script>

    <script type="text/javascript" language="javascript">
        <!--
            function department(str)
            {
                window.open('../WebCommon/Department.aspx?SID=' + str, '', 'width=700,height=580,top=200, left=300'); 
            }
        -->       
    </script>
    
    <script type="text/javascript" language="javascript">
        function slavedepartment(str)
            {
                window.open('../WebCommon/DepartmentSlave.aspx?SID=' + str, '', 'width=700,height=580,top=80, left=250'); 
            }
    </script>

    <script type="text/javascript" language="javascript">
        function userinfo(str)
            {
                window.open('../WebCommon/UserInfo.aspx?SID=' + str, '', 'width=700,height=580,top=150, left=300'); 
            }
    </script>

</head>
<body>
    <form id="form1" runat="server">
        <asp:ScriptManager ID="ScriptManager1" runat="server" EnableScriptGlobalization="True">
        </asp:ScriptManager>
        <div>
            <table cellpadding="0" cellspacing="0" border="0" width="884">
                 <tr>
                    <td style="height: 1; width: 884px;">
                    </td>
                </tr>
                <tr>
                    <td colspan="8" style="height: 30px; background-image: url(../images/secondRow.gif);
                        background-repeat: repeat-x;">
                        &nbsp;<asp:Button ID="btnSave" runat="server" Text="保存" OnClick="btnSave_Click" SkinID="buttonSkin" />
                        <asp:Button ID="btnOk" runat="server" Text="返回" OnClick="btnOk_Click" SkinID="buttonSkin" />
                        <asp:CheckBox ID="ckbAllSelect" runat="server" AutoPostBack="True" OnCheckedChanged="ckbAllSelect_CheckedChanged"
                            Text="全选" SkinID="checkboxSkin" /></td>
                </tr>
                <tr>
                    <td colspan="8">
                        <asp:GridView ID="gdvQuarterPlanResolve" runat="server" AutoGenerateColumns="False"
                            SkinID="gridviewSkin" DataKeyNames="Id,QuarterPlanId">
                            <Columns>
                                <asp:TemplateField HeaderText="选择">
                                    <ItemTemplate>
                                        <asp:CheckBox ID="ckbSelect" runat="server" SkinID="checkboxSkin" />
                                    </ItemTemplate>
                                    <HeaderStyle Wrap="False" Width="30px" />
                                    <ItemStyle Width="30px" />
                                </asp:TemplateField>
                                <asp:BoundField DataField="QuarterDetailPlanId" HeaderText="id">
                                    <HeaderStyle Wrap="False" Width="30px" />
                                    <ItemStyle Width="30px" />
                                </asp:BoundField>
                                <asp:BoundField DataField="StartTime" HeaderText="开始时间" DataFormatString="{0:yyyy-MM-dd}" HtmlEncode="False">
                                    <HeaderStyle HorizontalAlign="Center" VerticalAlign="Middle" Width="75px" Wrap="False" />
                                    <ItemStyle HorizontalAlign="Center" VerticalAlign="Middle" Width="75px" Wrap="False" />
                                </asp:BoundField>
                                <asp:BoundField DataField="CompleteTime" HeaderText="完成时间" DataFormatString="{0:yyyy-MM-dd}" HtmlEncode="False">
                                    <HeaderStyle HorizontalAlign="Center" VerticalAlign="Middle" Width="75px" Wrap="False" />
                                    <ItemStyle HorizontalAlign="Center" VerticalAlign="Middle" Width="75px" Wrap="False" />
                                </asp:BoundField>
                                <asp:BoundField DataField="WorkItem" HeaderText="计划名称">
                                    <HeaderStyle HorizontalAlign="Center" VerticalAlign="Middle" Width="126px" Wrap="False" />
                                    <ItemStyle HorizontalAlign="Left" VerticalAlign="Middle" Width="126px" Wrap="True" />
                                </asp:BoundField>
                                <asp:BoundField DataField="MasterDepartment" HeaderText="责任部门">
                                    <HeaderStyle HorizontalAlign="Center" VerticalAlign="Middle" Width="55px" Wrap="False" />
                                    <ItemStyle HorizontalAlign="Center" VerticalAlign="Middle" Width="55px" Wrap="True" />
                                </asp:BoundField>
                                <asp:BoundField DataField="MasterPeople" HeaderText="责任人">
                                    <HeaderStyle HorizontalAlign="Center" Width="89px" Wrap="False" />
                                    <ItemStyle Width="89px" HorizontalAlign="Center" />
                                </asp:BoundField>
                                <asp:BoundField DataField="SlaveDepartment" HeaderText="配合部门">
                                    <HeaderStyle HorizontalAlign="Center" Width="89px" Wrap="False" />
                                    <ItemStyle Width="89px" HorizontalAlign="Center" Wrap="True" />
                                </asp:BoundField>
                                <asp:BoundField DataField="SlaveDepartmentDuty" HeaderText="配合部门责任">
                                    <HeaderStyle HorizontalAlign="Center" VerticalAlign="Middle" Width="89px" Wrap="False" />
                                    <ItemStyle HorizontalAlign="Left" VerticalAlign="Middle" Width="89px" Wrap="True" />
                                </asp:BoundField>
                                <asp:BoundField DataField="EvaluatePeople" HeaderText="评估人">
                                    <HeaderStyle HorizontalAlign="Center" Width="90px" Wrap="False" />
                                    <ItemStyle HorizontalAlign="Center" Width="90px" />
                                </asp:BoundField>
                                <asp:BoundField DataField="Remart" HeaderText="备注">
                                    <HeaderStyle HorizontalAlign="Center" Width="91px" Wrap="False" />
                                    <ItemStyle HorizontalAlign="Left" Width="91px" Wrap="True" />
                                </asp:BoundField>
                                <asp:TemplateField HeaderText="删除">
                                    <ItemTemplate>
                                        <asp:Button ID="btnDel" runat="server" Text="删除" OnClick="btnDel_Click1" SkinID="buttonSkin"
                                            Font-Size="9pt" />
                                    </ItemTemplate>
                                    <HeaderStyle Wrap="False" Width="45px" />
                                    <ItemStyle Width="45px" />
                                </asp:TemplateField>
                                <asp:BoundField DataField="Id" HeaderText="Id" Visible="False" />
                                <asp:BoundField DataField="QuarterPlanId" HeaderText="QuarterPlanId" Visible="False" />
                            </Columns>
                        </asp:GridView>
                    </td>
                </tr>
                <tr>
                    <td colspan="8">
                        <table cellpadding="0" cellspacing="1" style="background-color: #d0d0ce;" border="0"
                            width="884px">
                            <tr style="height: 50px; background-color: #ffffff;">
                                <td style="width: 35px">
                                    <input id="Hidden1" style="width: 28px" type="hidden" /></td>
                                <td style="width: 35px" valign="middle">
                                    <input id="txtQuarterPlanSortId" runat="server" style="width: 23px;" type="text" />
                                    </td>
                                <td valign="middle" align="center" style="width: 73px">
                                    <asp:TextBox ID="txtStartTime" runat="server" onfocus="WdatePicker({dateFmt:'yyyy-MM-dd'})" Width="65px" SkinID="textboxSkin"></asp:TextBox><asp:CompareValidator
                                        ID="CompareValidator1" runat="server" ControlToValidate="txtStartTime" Display="Dynamic"
                                        ErrorMessage="日期类型不正确" Operator="DataTypeCheck" Type="Date" Width="0px"></asp:CompareValidator> 
                                </td>
                                <td valign="middle" align="center" style="width: 73px">
                                    <asp:TextBox ID="txtCompleteTime" runat="server" onfocus="WdatePicker({dateFmt:'yyyy-MM-dd'})" Width="65px" SkinID="textboxSkin"></asp:TextBox><asp:CompareValidator
                                        ID="CompareValidator2" runat="server" ControlToValidate="txtCompleteTime" Display="Dynamic"
                                        ErrorMessage="日期类型不正确" Operator="DataTypeCheck" Type="Date" Width="0px"></asp:CompareValidator> 
                                </td>
                                <td valign="middle" align="center" style="width: 118px">
                                    <asp:TextBox ID="txtWorkItem" runat="server" TextMode="MultiLine" Width="100px" SkinID="textboxMultiLineSkin"></asp:TextBox></td>
                                <td valign="middle" align="center" style="width: 55px">
                                    <asp:TextBox ID="txtMasterDepartment" Width="50px" runat="server" Enabled="False"
                                        SkinID="textboxSkin"></asp:TextBox></td>
                                <td valign="middle" align="center" style="width: 87px">
                                    <input id="txtMasterPeople" type="text" runat="server" style="width: 50px;" readonly="readOnly" /><a
                                        href="#" onclick="javascript:userinfo(parentNode.firstChild.id );"><img alt="" src="../images/addpages.jpg"
                                            border="0" /></a></td>
                                <td valign="middle" align="center" style="width: 86px">
                                    <input id="txtSlaveDepartment" type="text" runat="server" style="width: 50px;" readonly="readOnly" /><a
                                        href="#" onclick="javascript:slavedepartment(parentNode.firstChild.id );"><img alt="" src="../images/addpages.jpg"
                                            border="0" /></a></td>
                                <td valign="middle" align="center" style="width: 86px">
                                    <asp:TextBox ID="txtSlaveDepartmentDuty" runat="server" TextMode="MultiLine" Width="80px"
                                        SkinID="textboxMultiLineSkin"></asp:TextBox></td>
                                <td valign="middle" style="width: 86px" align="center">
                                    <input id="txtVerifyPeople" type="text" runat="server" style="width: 50px;" readonly="readOnly" /><a
                                        href="#" onclick="javascript:userinfo(parentNode.firstChild.id );"><img alt="" src="../images/addpages.jpg"
                                            border="0" /></a></td>
                                <td valign="middle" style="width: 84px" align="center">
                                    <asp:TextBox ID="txtRemark" runat="server" TextMode="MultiLine" Width="83px" SkinID="textboxMultiLineSkin"></asp:TextBox></td>
                                <td style="width: 49px" valign="middle">
                                    <asp:Button ID="btnAdd" runat="server" Width="30px" Text="添加" OnClick="btnAdd_Click"
                                        SkinID="buttonSkin" Font-Size="9pt" /></td>
                            </tr>
                        </table>
                    </td>
                </tr>
            </table>
        </div>
    </form>
</body>
</html>
